<script>on openBackgroundglobal mapLocLC, footprintsLC, completeLCif there is a window "mainMenu" then close window "mainMenu"repeat with x = 1 to the number of bg buttonsset the icon of bg button x to 0if the short name of bg button x is in footprintsLC thenset the style of bg button x to transparentelse set the style of bg button x to opaqueend repeatif mapLocLC is not empty then ¬set the icon of bg button mapLocLC to "openCrossGray"if the number of items in footprintsLC > 8 and completeLC ≠ "done" thenput "done" into completeLCanswer "Congratulations! You have completed this stack."end ifend openBackground</script>